//
//  UIView+WXAutoLayout.h
//  WXStatisticsPanel
//
//  Created by tianlong on 2018/8/24.
//  Copyright © 2018年 tianlong. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (WXAutoLayout)

#pragma mark - 固定缩放参考标准为 375x667 或者 768x1024
- (CGFloat(^)(CGFloat design))AutoFitTop;
- (CGFloat(^)(CGFloat design))AutoFitLeft;
- (CGFloat(^)(CGFloat design))AutoFitRight;
- (CGFloat(^)(CGFloat design))AutoFitWidth;
- (CGFloat(^)(CGFloat design))AutoFitHeight;
- (CGFloat(^)(CGFloat design))AutoFitBottom;
- (CGFloat(^)(CGFloat design))AutoFitFontSize;

#pragma mark - 自定义缩放参考标准
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitTop_Custom;
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitLeft_Custom;
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitRight_Custom;
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitWidth_Custom;
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitHeight_Custom;
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitBottom_Custom;
- (CGFloat(^)(CGFloat design,CGFloat refer))AutoFitFontSize_Custom;

/** 根据传入的参考标准获取宽度缩放比例 */
- (CGFloat(^)(CGFloat refer))AutoFitWidthScale;
/** 根据传入的参考标准获取高度缩放比例 */
- (CGFloat(^)(CGFloat refer))AutoFitHeightScale;
- (CGFloat)WXGetCurrentScreenWidth;
- (CGFloat)WXGetCurrentScreenHeight;
/** 获取保护区域 */
- (UIEdgeInsets)WXGetViewSafeAreaInsets;
@end
